home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / nild.exe / README < prev   
Text File  |  1992-08-29  |  2KB  |  55 lines

  1. Numeric Input Line Demonstration
  2. Copyright (C) 1992 by James H. Price, all rights reserved
  3.  
  4. Introduction
  5.  
  6.   This program gives an example of specializing TInputLine to accept
  7.   numeric input only.  Most of the work is done in a pure virtual,
  8.   template base class, NumInputLine, from which input classes are for
  9.   integers and doubles are derived.  Deriving further classes for
  10.   floats, longs, etc. is trivial.
  11.  
  12.   The demo consists of the following files:
  13.  
  14.     NUMINP.H                     Header file for NumInputLine classes
  15.     NUMINP.CPP                   Member functions for NumInputLine classes
  16.     INPTEST.CPP                  A simple TurboVision demo program
  17.     INPTEST.PRJ                  Project file for the demo
  18.     README                       This file
  19.  
  20.  
  21. Operation:
  22.  
  23.   NumInputLine masks keyboard input to prevent non-numeric characters
  24.   from being entered. The mask type is set as an argument to the
  25.   NumInputLine constructor.  See the top of the header file for an
  26.   explation of the masks.
  27.  
  28.   In addition to input masking, NumInputLine overrides getData(),
  29.   setData(), and dataSize() to accept and return objects of the desired
  30.   type.
  31.  
  32.  
  33. Limitations:
  34.  
  35.   No bounds or overflow checking is performed, other than limiting the
  36.   length of the input string.  In fact, virtually no error checking of
  37.   any sort is done, since this is intended more as a demonstration that
  38.   a piece of industrial-strength code.
  39.  
  40.  
  41. Other:
  42.  
  43.   I'll be happy to answer questions about the program, but I don't
  44.   intend to really 'support' it.  Extending and/or maintaining the code
  45.   is left as an exercise for the user!
  46.  
  47.   Any rights which Borland may have to TurboVision-based code remain in
  48.   force.  Otherwise, feel free to use this code as you see fit.  I'm
  49.   reasonably certain that it works as described, but of course, you use
  50.   it at your own risk.  If you distribute this as source code, please
  51.   include this file.
  52.  
  53.   Jim Price  76264,3534
  54.   28 Aug 92
  55.